home *** CD-ROM | disk | FTP | other *** search
-
- regc(2, "COMBINED_XFORM")
-
- regc(12, "FOG_PARAMS")
-
- vshader("
-
- #define point v0
- #define normal v1
- #define tangent v2
- #define tcoord v3
-
- #define fogp c12
-
- #include <fog.inc>
-
- vs_1_1
-
- dcl_position point
- dcl_normal normal
- dcl_tangent tangent
- dcl_texcoord tcoord
-
- ; output position
- m4x4 oPos, point, c2
-
- ; output texcoords
- mov oT0, tcoord // color
- mov oT1, tcoord // dirt
- mov oT2, tcoord // lights masks
-
- ; calc fog
- dp4 r0.x, point, c4
- FOG(r0.x, fogp, r10)
- ")
-
-